home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmAddIn
- BackColor = &H00000000&
- BorderStyle = 3 'Fixed Dialog
- Caption = "KeyGen by CyberBlade..."
- ClientHeight = 3540
- ClientLeft = 2175
- ClientTop = 1935
- ClientWidth = 4515
- Icon = "frmAddIn.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3540
- ScaleWidth = 4515
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton Command1
- Caption = "Quit"
- Height = 495
- Left = 2280
- TabIndex = 5
- Top = 2880
- Width = 1815
- End
- Begin VB.CommandButton cmdGenerate
- Caption = "Generate"
- Height = 495
- Left = 360
- TabIndex = 4
- Top = 2880
- Width = 1815
- End
- Begin VB.Frame Frame2
- BackColor = &H80000007&
- Caption = "Serial:"
- ForeColor = &H000000FF&
- Height = 975
- Left = 240
- TabIndex = 2
- Top = 1440
- Width = 3975
- Begin VB.TextBox txtKey
- BackColor = &H00E0E0E0&
- ForeColor = &H00800000&
- Height = 375
- Left = 240
- Locked = -1 'True
- TabIndex = 3
- Text = "< Your serial will be displayed here >"
- Top = 360
- Width = 3495
- End
- End
- Begin VB.Frame Frame1
- BackColor = &H80000007&
- Caption = "Please enter your name in the field below:"
- ForeColor = &H000000FF&
- Height = 975
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 3975
- Begin VB.TextBox txtName
- ForeColor = &H00000000&
- Height = 375
- Left = 240
- TabIndex = 1
- Text = "CyberBlade"
- Top = 360
- Width = 3375
- End
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "KeyGen for AfKayAs CrackMe #2"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = -1 'True
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 375
- Left = 0
- TabIndex = 6
- Top = 0
- Width = 4095
- End
- Begin VB.Line Line3
- BorderColor = &H00FFFFFF&
- X1 = 0
- X2 = 4560
- Y1 = 2640
- Y2 = 2640
- End
- Begin VB.Line Line2
- BorderColor = &H00FFFFFF&
- X1 = 4560
- X2 = 4575
- Y1 = 2520
- Y2 = 2535
- End
- Begin VB.Line Line1
- BorderColor = &H00E0E0E0&
- BorderWidth = 2
- X1 = 4560
- X2 = 4575
- Y1 = 2520
- Y2 = 2535
- End
- Attribute VB_Name = "frmAddIn"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdGenerate_Click()
- Dim Key As Long
- 'Check if the entered Name is valid
- If Len(txtName.Text) < 1 Then
- MsgBox "You have to enter at least 1 char !", vbInformation + vbOKOnly, "Error!"
- Exit Sub
- End If
- 'Generate the Key
- Key = 88888 * Len(txtName.Text)
- Key = Key + Asc(Left(txtName.Text, 1))
- Key = Key + 2
- Key = Int(Key * 3)
- Key = Key - 2
- Key = Key + 15
- txtKey.Text = Key 'Display Key in TextBox
- Key = 0
- Value1 = 0
- End Sub
- Private Sub Command1_Click()
- Unload Me
- End Sub
-